package com.yyxxlu.aimodel.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.openai.OpenAiChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class aiConfiguration {

  @Bean
  public ChatClient ChatClient(OpenAiChatModel openAIClient) {
    return ChatClient.builder(openAIClient).defaultSystem("你是一个文章生成漫画的高手").build();
  }
}
